package com.vonchenchen.usbmuxd_android.usbmuxd.localconn.sharemem;

import android.os.ParcelFileDescriptor;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created by lidechen on 3/28/17.
 */

public class AshmemReciver extends AshmemConnector  {

    public AshmemReciver(ParcelFileDescriptor fd) {
        mFd = fd;
    }

    @Override
    public void open() throws IOException {
        mSocketInput = new FileInputStream(mFd.getFileDescriptor());
        mSocketOutput = new FileOutputStream(mFd.getFileDescriptor());
    }

    @Override
    public void close() throws IOException {

    }
}
